home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue10.arc / TVPUTCH.C < prev    next >
C/C++ Source or Header  |  1988-08-13  |  1KB  |  29 lines

  1. /*=======================================================*/
  2. /*  TVPUTCH.C                                            */
  3. /*                                                       */
  4. /*  (c) Copyright 1988 Ralf Brown  All Rights Reserved   */
  5. /*  May be freely copied for noncommercial use, so long  */
  6. /*  as this copyright notice remains intact, and any     */
  7. /*  changes are marked in the comment blocks preceding   */
  8. /*  functions.                                           */
  9. /*=======================================================*/
  10.  
  11. #include "tvapi.h"
  12.  
  13. /*======================================================*/
  14. /* TVputchar--display a character with given attribute  */
  15. /*            in a specified window                     */
  16. /*   Ralf Brown 4/2/88                                  */
  17. /*======================================================*/
  18.  
  19. void pascal TVputchar(OBJECT win, int c, int attribute)
  20. {
  21.    _DX = win ? OBJSEG(win) : OBJSEG(TVobject(ME)) ;
  22.    _BH = attribute ;
  23.    _BL = c ;
  24.    _AX = 0x1003 ;
  25.    geninterrupt(0x15) ;
  26. }
  27.  
  28. /* End of TVPUTCH.C */
  29.